#include "customheaderview.h"

CustomHeaderView::CustomHeaderView(Qt::Orientation orientation, QWidget *parent)
    : QHeaderView(orientation, parent) {
    QCheckBox *checkBox = new QCheckBox(this);
    checkBox->move(3, 5); // 调整位置
    //resizeSection(0, 10);
    connect(checkBox, &QCheckBox::stateChanged, this, &CustomHeaderView::checkBoxStateChanged);
}
